﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Krile.Kernel.Data;

namespace Twinkle.Searchs
{
    public class SearchTwitterRetweetedStatus : NoneSearchData
    {
        public override string Identification
        {
            get { return Define.PluginId + "_SEARCH_TWITTER_RT"; }
        }

        protected override bool IsMatchedInner(Status status)
        {
            return status is Tweak.TStatus && ((Tweak.TStatus)status).StatusKind == Twinkle.Tweak.TStatus.StatusKinds.Retweet;
        }

        public override string Description
        {
            get { return Lang.General.TwitterRetweetStatusDescription; }
        }

        public override string Name
        {
            get { return Lang.General.TwitterRetweetStatusName; }
        }


        public override object Clone()
        {
            return new SearchTwitterStatus() { Exclude = Exclude };
        }

        public override string Method
        {
            get { return "Twitter"; }
        }

        public override string Class
        {
            get { return "IsRetweeted"; }
        }
    }
}